<?php
require_once $_SERVER['DOCUMENT_ROOT'] . "/config/globalconfig.php";
require_once $_SERVER['DOCUMENT_ROOT'] . "/public/Cms.php";
if (!file_exists('./leecms.lock')) {
    if (file_exists('./install/index.php')) {
        header("location:./install/index.php");
        exit;
    } else {
        header("Content-type: text/html;charset=utf-8");
        echo "<div style='border:1px solid red;width:100%;font-size: 16px; margin: 0px auto;padding: 0px;'>安装文件不存在，请上传。如已安装过，请检查leecms.lock文件是否丢失。</div>";
        die();
    }
}
$cms = new Cms();
$cms->index();